package com.docker.chy.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.docker.chy.mapper.DoctorRegistationcostMapper;
import com.docker.chy.domain.DoctorRegistationcost;
import com.docker.chy.service.IDoctorRegistationcostService;

/**
 * 挂号费Service业务层处理
 * 
 * @author ruoyi
 * @date 2025-04-10
 */
@Service
public class DoctorRegistationcostServiceImpl implements IDoctorRegistationcostService 
{
    @Autowired
    private DoctorRegistationcostMapper doctorRegistationcostMapper;

    /**
     * 查询挂号费
     * 
     * @param id 挂号费主键
     * @return 挂号费
     */
    @Override
    public DoctorRegistationcost selectDoctorRegistationcostById(Long id)
    {
        return doctorRegistationcostMapper.selectDoctorRegistationcostById(id);
    }

    /**
     * 查询挂号费列表
     * 
     * @param doctorRegistationcost 挂号费
     * @return 挂号费
     */
    @Override
    public List<DoctorRegistationcost> selectDoctorRegistationcostList(DoctorRegistationcost doctorRegistationcost)
    {
        return doctorRegistationcostMapper.selectDoctorRegistationcostList(doctorRegistationcost);
    }

    /**
     * 新增挂号费
     * 
     * @param doctorRegistationcost 挂号费
     * @return 结果
     */
    @Override
    public int insertDoctorRegistationcost(DoctorRegistationcost doctorRegistationcost)
    {
        return doctorRegistationcostMapper.insertDoctorRegistationcost(doctorRegistationcost);
    }

    /**
     * 修改挂号费
     * 
     * @param doctorRegistationcost 挂号费
     * @return 结果
     */
    @Override
    public int updateDoctorRegistationcost(DoctorRegistationcost doctorRegistationcost)
    {
        return doctorRegistationcostMapper.updateDoctorRegistationcost(doctorRegistationcost);
    }

    /**
     * 批量删除挂号费
     * 
     * @param ids 需要删除的挂号费主键
     * @return 结果
     */
    @Override
    public int deleteDoctorRegistationcostByIds(Long[] ids)
    {
        return doctorRegistationcostMapper.deleteDoctorRegistationcostByIds(ids);
    }

    /**
     * 删除挂号费信息
     * 
     * @param id 挂号费主键
     * @return 结果
     */
    @Override
    public int deleteDoctorRegistationcostById(Long id)
    {
        return doctorRegistationcostMapper.deleteDoctorRegistationcostById(id);
    }
}
